package com.example.firstservice;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

/**
 * Created by 居伦昶 on 2018/6/10.
 */

public class firstservice extends Service {
    @Override
    public IBinder onBind(Intent intent) {
        System.out.print("Service onBind");
        return null;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        System.out.print("Service onCreate");
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        System.out.print("flags--->"+flags);
        System.out.print("startID--->"+startId);
        System.out.print("Service onStartCommand");
        return super.onStartCommand(intent, flags, startId);

    }

    @Override
    public void onDestroy() {
        System.out.print("Service onDestroy");
        super.onDestroy();
    }
}
